<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<div class="t_bar">项目负责人</div>
<table cellpadding="0" class="table01 t_css" width="100%" border="0"
	   cellpadding="0" style="border-bottom: #a1c0dc 1px solid;">
	<tr>
		<td align="center">姓名</td>
		<td><x:out select="$xmlData/data/proposal/fzr_psnname" /></td>
		<td align="center">性别</td>
		<td>
			<%--<x:out select="$xmlData/data/zh_persons/zh_person['00']/basic_info/gender_name" />--%>
			<c:set var="gender_value"><x:out
					select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/gender_value"  escapeXml="false" /></c:set>
			<c:if test="${gender_value eq 'M' }">男</c:if>
			<c:if test="${gender_value eq 'F' }">女</c:if>
		</td>
		<td align="center">出生年月</td>
		<td align="center"><x:out select="$xmlData/data/proposal/fzr_birthday" /></td>
	</tr>
	<tr>
		<td align="center">学历</td>
		<td><x:out select="$xmlData/data/proposal/fzr_degree_name" /></td>
		<td align="center">职务</td>
		<td><x:out select="$xmlData/data/proposal/fzr_position" /></td>
		<td align="center">职称</td>
		<td><x:out select="$xmlData/data/proposal/fzr_prof_title_name" /></td>
	</tr>

	<tr>
		<td align="center">从事专业</td>
		<td colspan="3"><x:out escapeXml="false" select="$xmlData/data/proposal/fzr_major_work" /></td>

		<td align="center">手机</td>
		<td><x:out escapeXml="false" select="$xmlData/data/proposal/fzr_mobile" /></td>
	</tr>
</table>
<div class="t_bar">项目负责人简介，重点填写主要成果和管理能力等</div>
<table class="t_css table01" width="100%" border="0" cellpadding="0"  id="tblresume"  cellspacing="1">
	<tr style="word-break: break-all;">
		<td><x:out  escapeXml="false" select="$xmlData/data/proposal/project_fzr_hidden"/></td>
	</tr>
</table>
<div class="t_bar">项目组主要参与人员 </div>
<table  id="zh_persons" border="0" cellspacing="0" cellpadding="0" class="t_css table01" >
	<thead>
	<tr>

		<th nowrap>序号</th>
		<th width="13%">姓名</th>
		<th width="11%">出生年月</th>
		<th width="5%">性别</th>
		<th width="11%">从事专业</th>

		<th width="10%">职称</th>
		<th width="10%">学历</th>
		<th width="20%">所在单位</th>
		<th width="20%" nowrap="nowrap">项目分工</th>

	</tr>
	</thead>
	<tbody id="tab">
	<c:set value="0" var="index" scope="page" />
	<x:forEach select="$xmlData/data/zh_persons/zh_person" var="zh_person">
		<tr>
			<td nowrap=true align="center"  align="center">
				<input type="radio" name="sel_zh_persons" onclick="setSubmitPsn()" style="display:none"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/en_name" value="<x:out select="$zh_person/basic_info/en_name" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/ethnicity_value" value="<x:out select="$zh_person/basic_info/ethnicity_value" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/ethnicity_name" value="<x:out select="$zh_person/basic_info/ethnicity_name" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/region_value" value="<x:out select="$zh_person/basic_info/region_value" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/region_name" value="<x:out select="$zh_person/basic_info/region_name" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/gender_value" value="<x:out select="$zh_person/basic_info/gender_value" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_type_value" value="<x:out select="$zh_person/basic_info/card_type_value" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/academician_value" value="<x:out select="$zh_person/basic_info/academician_value" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/academician_name" value="<x:out select="$zh_person/basic_info/academician_name" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/org_code" value="<x:out select="$zh_person/basic_info/org_code" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/tel_work" value="<x:out select="$zh_person/contact/tel_work" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/fax" value="<x:out select="$zh_person/contact/fax" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_value" value="<x:out select="$zh_person/basic_info/degree_value" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_name" value="<x:out select="$zh_person/basic_info/degree_name" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/post_code" value="<x:out select="$zh_person/basic_info/post_code" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_country_value" value="<x:out select="$zh_person/basic_info/degree_country_value" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_country_name" value="<x:out select="$zh_person/basic_info/degree_country_name" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_college" value="<x:out select="$zh_person/basic_info/degree_college" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_year" value="<x:out select="$zh_person/basic_info/degree_year" />" />

				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/gender_name" value="<x:out select="$zh_person/basic_info/gender_name" />" />

				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title_value" value="<x:out select="$zh_person/basic_info/prof_title_value" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/address" value="<x:out select="$zh_person/basic_info/address" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/post_doctor_value" value="<x:out select="$zh_person/basic_info/post_doctor_value" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/post_doctor_name" value="<x:out select="$zh_person/basic_info/post_doctor_name" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/age" value="<x:out select="$zh_person/basic_info/age" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/educate_value" value="<x:out select="$zh_person/basic_info/educate_value" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_code" value="<x:out select="$zh_person/basic_info/card_code" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_type_name" value="<x:out select="$zh_person/basic_info/card_type_name" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/email" value="<x:out select="$zh_person/contact/email" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/mobile" value="<x:out select="$zh_person/contact/mobile" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/position" value="<x:out select="$zh_person/basic_info/position" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/gender_value" value="<x:out select="$zh_person/basic_info/gender_value" />"/>

				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/iscomember" value="0"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/researches" label="xml"/>
				<span name="zh_persons/zh_person[${flag}${index}]@seq_no">${index+1}</span>
			</td>
			<td align="center">
				<span name="zh_persons/zh_person[${flag}${index}]/basic_info/zh_name"><a href="#" class="yase" onclick="psnInfoViewBykjjzfp(this,'zh_persons')"><x:out select="$zh_person/basic_info/zh_name" /></a></span>
			</td>
			<td align="center">
				<span name="zh_persons/zh_person[${flag}${index}]/basic_info/birthday"><x:out select="$zh_person/basic_info/birthday" /></span>
			</td>
			<td align="center">

				<c:set var="gender_value"><x:out select="$zh_person/basic_info/gender_value" /></c:set>
				<c:choose>
					<c:when test="${gender_value == 'F' || gender_value == 'M'}">
						<c:if test="${gender_value == 'F'}">女</c:if>
						<c:if test="${gender_value == 'M'}">男</c:if>
					</c:when>
					<c:otherwise>
						<x:out select="$zh_person/basic_info/gender_value" />
					</c:otherwise>
				</c:choose>

			</td>
			<td align="left">
				<span name="zh_persons/zh_person[${flag}${index}]/contact/major_work"><x:out select="$zh_person/contact/major_work" /></span>
			</td>

			<td align="center">
				<span name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title_name"><x:out select="$zh_person/basic_info/prof_title_name" /></span>
			</td>
			<td align="center">
				<span name="zh_persons/zh_person[${flag}${index}]/basic_info/educate_name"><x:out select="$zh_person/basic_info/educate_name" /></span>
			</td>
			<td align="left">
				<span name="zh_persons/zh_person[${flag}${index}]/basic_info/org_name"><x:out select="$zh_person/basic_info/org_name" /></span>
			</td>
			<td align="left">
				<span name="zh_persons/zh_person[${flag}${index}]/basic_info/work"><c:choose><c:when test="${index==0}">项目负责人</c:when><c:otherwise><x:out select="$zh_person/basic_info/work" /></c:otherwise></c:choose></span>
			</td>

		</tr>
		<c:set value="${index+1}" var="index" scope="page" />
	</x:forEach>
	</tbody>
</table>
<script type="text/javascript">
	function psnInfoViewBykjjzfp(obj,tableId) {

		var subGrantCode = $("#[name='proposal/sub_grant_code']").val();
		var url;

		url = ctx+"/contract/view/dialog/psnInfoEdit_zdkjcggchyfxm_2019?parentTab="+tableId+"&type=edit&TB_iframe=true&height=460&width=910";
		//url = ctx+"/proposal/edit/dialog/psnInfoEdit_zdkjcggchyfxm_2019?parentTab="+tableId+"&type=edit&TB_iframe=true&height=460&width=910";

		$(obj).parents("tr").find(":radio").attr("checked",true);
		if(!$("#"+tableId+" :radio:checked").length>0){
			scmWarn(irisNotes.pleaseSelectARow);
			return false;
		}
		if(url!=null&&url!=""){
			// showThickBox(url,irisNotes.viewResearcherInformation);
			var title=irisNotes.viewResearcherInformation;
			tb_show(title,url,false);
		}
	}
</script>